package com.l2qq.common.handler;

import com.jfinal.handler.Handler;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class XssHandler extends Handler {
    @Override
    public void handle(String target, HttpServletRequest request,
                       HttpServletResponse response, boolean[] isHandled) {
        request = new XssRequestWrapper(request); // 包装请求
        next.handle(target, request, response, isHandled);
    }
}